import { _decorator, Component, Label, Node } from 'cc';
import { LayerManager } from './manager/LayerManager';
import { myGame } from './MyGame';
const { ccclass, property } = _decorator;

@ccclass('GameStart_Layer')
export class GameStart_Layer extends Component {
    @property(Label)
    public labelStage: Label = null

    @property(LayerManager)
    public layerManager: LayerManager = null

    onEnable(): void {
        this.labelStage.string = myGame.level.toString()    
        this.scheduleOnce(this.transition, 2)
    }

    transition() {
        this.layerManager.transition()
    }
}


